home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / vim_doc.zip / MAZE.REA < prev    next >
Text File  |  1993-01-12  |  2KB  |  39 lines

  1. To prove that you can do anything in vi, I wrote a couple of macros that
  2. allows vi to solve mazes. It will solve any maze produced by maze.c
  3. that was posted to the net recently.
  4.  
  5. Just follow this recipe and SEE FOR YOURSELF.
  6.     1. run uudecode on the file "maze.vi.macros.uu" to
  7.         produce the file "maze.vi.macros"
  8.     (If you can't wait to see the action, jump to step 4)
  9.     2. compile maze.c with "cc -o maze maze.c"
  10.     3. run maze > maze.out and input a small number (for example 10 if
  11.         you are on a fast machine, 3-5 if slow) which
  12.         is the size of the maze to produce
  13.     4. edit the maze (vi maze.out)
  14.     5. include the macros with the vi command:
  15.         :so maze.vi.macros
  16.     6. type the letter "g" (for "go") and watch vi solve the maze
  17.     7. when vi solves the maze, you will see why it lies
  18.     8. now look at maze.vi.macros and all will be revealed
  19.  
  20. Tested on a sparc, a sun and a pyramid (although maze.c will not compile
  21. on the pyramid).
  22.  
  23. Anyone who can't get the maze.c file to compile, get a new compiler,
  24. try maze.ansi.c which was also posted to the net.
  25. If you can get it to compile but the maze comes out looking like a fence
  26. and not a maze and you are using SysV or DOS replace the "27" on the
  27. last line of maze.c by "11"
  28. Thanks to John Tromp (tromp@piring.cwi.nl) for maze.c.
  29. Thanks to antonyc@nntp-server.caltech.edu (Bill T. Cat) for maze.ansi.c.
  30.  
  31. Any donations should be in unmarked small denomination bills :^)=.
  32.  
  33.                    ACSnet:  gregm@otc.otca.oz.au
  34. Greg McFarlane       UUCP:  {uunet,mcvax}!otc.otca.oz.au!gregm
  35. |||| OTC ||         Snail:  OTC R&D GPO Box 7000, Sydney 2001, Australia
  36.                     Phone:  +61 2 287 3139    Fax: +61 2 287 3299
  37.  
  38.  
  39.